/**   
 * 项目名：phms3
 * 日期：    2019-11-22 17:31:06  
 * Copyright (c) 2015- HTSC-版权所有     
 */

package com.joysuch.wwyt.mh.repository;

import java.util.List;

import com.joysuch.wwyt.mh.entity.MhAlarmRuleInformChannal;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

/**
 * MhMajorHazardDao
 * 
 */
public interface MhAlarmRuleInfoChannelDao
        extends JpaRepository<MhAlarmRuleInformChannal, Long>, QuerydslPredicateExecutor<MhAlarmRuleInformChannal> {

    public Page<MhAlarmRuleInformChannal> findAll(Specification<MhAlarmRuleInformChannal> spec, Pageable pageable);

    public MhAlarmRuleInformChannal save(MhAlarmRuleInformChannal bean);

    public void delete(MhAlarmRuleInformChannal bean);

    public void deleteByRuleId(Long id);

    public List<MhAlarmRuleInformChannal> findByRuleId(Long id);

}
